#ifndef HELPER_FUNCTIONS
#define HELPER_FUNCTIONS

#include <D3DX10math.h>
#include <sstream>

/** Return elements of a 4x4 matrix as a formatted stream. */
std::ostream& operator << ( std::ostream& os, D3DXMATRIX m ) 
{
	for( int i = 0; i < 4; ++i )
	{
		for( int j = 0; j < 4; ++j )
			os << m(i, j) << "  ";

		os << "\n";
	}
	return os;
}

#endif